package com.lemon.domain;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 商品SKU表
 *
 */
@Data
@Schema(description = "商品SKU表")
public class Sku implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(title = "主键ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @Schema(title = "单价")
    private BigDecimal price;

    @Schema(title = "真实价格")
    private BigDecimal realPrice;

    @Schema(title = "商品条码")
    private String code;

    @Schema(title = "商品标题")
    private String title;

    @Schema(title = "商品单位")
    private Integer unit;

    @Schema(title = "商品重量")
    private Integer productWeight;

    @Schema(title = "商品长度")
    private Integer productLength;

    @Schema(title = "商品宽度")
    private Integer productWidth;

    @Schema(title = "商品高度")
    private Integer productHeight;

    @Schema(title = "商品体积")
    private Integer productVolume;

    @Schema(title = "其他规格")
    private String spec;

    @Schema(title = "SaaS标识")
    private String saasId;

    @Schema(title = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @Schema(title = "创建人账号")
    private String createBy;

    @Schema(title = "修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    @Schema(title = "修改人账号")
    private String updateBy;

    @Schema(title = "是否删除  1 未删除  2 已删除")
    private Integer isDel;

    @Schema(title = "Spu关联ID")
    private Integer spuId;
}
